Set hostname in DHCP config from the guest name, and if more than one interface
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sat, 3 Dec 2005 12:21:27 +0000 (12:21 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sat, 3 Dec 2005 12:21:27 +0000 (12:21 +0000)
commit60fdf33b7324089cdb1b3011ae46985ec91bd655
treed89a8528cf0766eb68f8f4bfecee46831704ed2b
parentffa06621c6b2b9a1c186a919154eb8d3ec3d453d
Set hostname in DHCP config from the guest name, and if more than one interface
is specified, from guest-2, guest-3 etc.  Have the DHCP server send the
hostname to the guest.

Added a lock around DHCP config file frobbing, to avoid racing creation vs
deletion.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/vif-nat